define(function(require,exports,module) {
	var webcallMsgDiv = $('.js_webcallMsg');
	
	$(function() {
		// 动态获取是否有新的消息
		$.ajax({
			url: "/365webcall/messageCount",
			type: 'GET',
			dataType: "json",
			success: function(data) {
				if(data == true || data == 'true'){
					webcallMsgDiv.find("i").addClass("active");
				}
			},
			complete:function (XHR,TS) { 
				XHR = null; 
			}
		});
	});
});

